-- ACTIVITY_GOLD_BONUS

-- 计算活动副本金币掉落
-- @param user     玩家对象
-- @param bonusArg 奖励参数
return function(user, bonusArg)
    local amount;
    local dungeonId   = DungeonM.getDungeonId();
    local dungeonInfo = ActivityDungeonM.getActivityByDungeonId(dungeonId);
    local grade       = dungeonInfo["grade"];
    local randSeed    = DungeonM.getRandSeed("ACTIVITY_GOLD");

    if grade == ACTIVITY_GRADE_DIFFICULT then
        amount = randSeed % (100 +1) + 350;
    elseif grade == ACTIVITY_GRADE_NORMAL then
        amount = randSeed % (100 +1) + 300;
    else
        amount = randSeed % (100 +1) + 250;
    end

    return { 2, "money", amount, };
end